package com.xuebusi.common.hotload;

/**
 * 后台检测线程类
 * 不断刷新重新加载实现了热加载接口的类
 * Created by SYJ on 2017/11/14.
 */
public class MsgHandler implements Runnable {
    @Override
    public void run() {
        while (true) {
            BaseManager manager = ManagerFactory.getManager(ManagerFactory.X_MANAGER);
            manager.logic();
            try {
                Thread.sleep(1000);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        }
    }
}
